<UserControl x:Class="QUT.Bio.SilverMap.SequenceSummaryTable"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:cx="http://schemas.microsoft.com/wpf/2008/toolkit"
			 xmlns:util="clr-namespace:QUT.Bio.Util">
	<UserControl.Resources>
		<Style TargetType="TextBlock"
			   x:Key="HeadingStyle">

			<Setter Property="FontSize"
					Value="12" />

		</Style>
	</UserControl.Resources>
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="auto" />
			<RowDefinition Height="*" />
			<RowDefinition Height="auto" />
		</Grid.RowDefinitions>

		<Grid Grid.Row="0"
			  Grid.Column="0">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="auto" />
				<ColumnDefinition Width="*" />
			</Grid.ColumnDefinitions>

			<TextBlock Style="{StaticResource HeadingStyle}"
					   Text="Query:"
					   Margin="0 0 5 5" />

			<TextBlock Style="{StaticResource HeadingStyle}"
					   Name="queryNameField"
					   Grid.Column="1"
					   Margin="0 0 5 5" />
		</Grid>

		<StackPanel Grid.Row="2"
					Margin="0"
					Orientation="Horizontal">
			<TextBlock Text="Show only items within radius"
					   Grid.Column="0"
					   VerticalAlignment="Center" Margin="3" />
			<CheckBox x:Name="withinRadius"
					  Grid.Column="1"
					  Margin="3"
					  VerticalAlignment="Center"
					  IsChecked="False" />
			<Button x:Name="checkMarked"
					Grid.Column="2"
					Margin="3"
					VerticalAlignment="Center"
					Content="Select"
					Width="50" />
			<Button x:Name="uncheckMarked"
					Grid.Column="3"
					Margin="3"
					VerticalAlignment="Center"
					Content="Deselect"
					Width="50" />
			<Button x:Name="showSequence"
					Grid.Column="4"
					Margin="3"
					VerticalAlignment="Center"
					Content="Show"
					Width="50"
					Click="showSequence_Click" />
			<Button x:Name="centreOnSelection"
					Grid.Column="4"
					Margin="3"
					VerticalAlignment="Center"
					Content="Blast"
					Width="50" />
		</StackPanel>

		<util:DataGrid x:Name="geneDetails"
					   Grid.Column="0"
					   Grid.Row="1"
					   AutoGenerateColumns="False"
					   AlternatingRowBackground="White"
					   RowBackground="White"
					   GridLinesVisibility="None"
					   HorizontalAlignment="Stretch"
					   SelectionMode="Extended"
					   VerticalAlignment="Stretch"
					   Margin="0 0 5 0"
					   Background="White"
					   BorderBrush="DarkGray">
			<util:DataGrid.Columns>
				<util:DataGridCheckBoxColumn Header="Selected"
											 Binding="{Binding Selected, Mode=TwoWay}"
											 CanUserReorder="True" />
				<util:DataGridTextColumn Header="Distance"
										 Binding="{Binding DistanceFromReferenceSequence}"
										 CanUserReorder="True"
										 IsReadOnly="True" />
				<util:DataGridTextColumn Header="Subject ID"
										 Binding="{Binding Label}"
										 CanUserReorder="True"
										 IsReadOnly="True" />
				<util:DataGridTextColumn Header="Name"
										 Binding="{Binding Name}"
										 CanUserReorder="True"
										 IsReadOnly="True" />
				<util:DataGridTextColumn Header="Product"
										 Binding="{Binding Product}"
										 CanUserReorder="True"
										 IsReadOnly="True" />
				<util:DataGridTextColumn Header="GI"
										 Binding="{Binding GIs}"
										 CanUserReorder="True"
										 IsReadOnly="True" />
			</util:DataGrid.Columns>
		</util:DataGrid>
	</Grid>

</UserControl>
